ENT.Type = "anim"
ENT.Base = "base_gmodentity"
  
ENT.PrintName = "Spawn Beacon"
ENT.Author = "Croxmeister"
ENT.Contact = "richard@darknexus.org.uk"
ENT.Purpose = "Used to control respawning"
ENT.Instructions = "Use to select this point to respawn from when you die" 
   
ENT.Spawnable			= true
ENT.AdminSpawnable		= true

ENT.ReqClearage = 90

util.PrecacheSound("ambient/machines/teleport1.wav")   
util.PrecacheSound("buttons/button5.wav")

function ENT:Blocked()
	local td = {}
	td.endpos = self:LocalToWorld(Vector(0,0,-5))
	td.start = self:LocalToWorld(Vector(0,0,-self.ReqClearage))
	
	local trace = util.TraceLine(td) 
	return trace.HitNonWorld 
end